C1Tiles Task-Based Help > Updating the Tile Content |
The C1SlideTile control will automatically alternate between content at regular intervals. You can adjust this interval using the static C1TileService class and the UpdateInterval property. For example:
Visual Basic |
Copy Code
|
---|---|
C1TileService.UpdateInterval = TimeSpan.FromSeconds(20) |
C# |
Copy Code
|
---|---|
C1TileService.UpdateInterval = TimeSpan.FromSeconds(20); |
The higher the update interval value, the less frequent updates will become.
You can also programmatically update a tile by calling the UpdateTile method on each specific tile. For example, to update the tile when it is clicked use the following code:
Visual Basic |
Copy Code
|
---|---|
Private Sub C1Tile_Click(sender As Object, e As System.EventArgs) Dim tile As C1Tile = TryCast(sender, C1Tile) If tile IsNot Nothing Then tile.UpdateTile() End If End Sub |
C# |
Copy Code
|
---|---|
private void C1Tile_Click(object sender, System.EventArgs e) { C1Tile tile = sender as C1Tile; if(tile != null) tile.UpdateTile(); } |